(function () {
    LoLTH.namespace('LoLTH.scorer');

    var CHAT = function (game) {
        var self = this;

        self.game = game;
        self.score = 0;
    };

    CHAT.prototype.scan = function () {
        var self = this,
            count = 0;

        self.game.find('.chat-message').each(function () {
            var $this = jQuery(this),
                $container = $this.parent('tr'),
                message = $this.text(),
                isReportedPlayer = $container.hasClass('reported-player');

            if (isReportedPlayer) {
                count = count + self.scoreMessage(message);
            }
        });

        self.score = count;
    };

    CHAT.prototype.scoreMessage = function (message) {
        return 0;
    };

    CHAT.prototype.getScore = function () {
        var self = this;

        self.scan();

        return self.score;
    };

    LoLTH.scorer.Chat = CHAT;
}());